/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package questionbook.standard;

import org.openrdf.model.URI;
import questionbook.Configuration.QuestionbookConfiguration;
import questionbook.manager.StoreManager;

/**
 * This class provides the Identifiers for the FOAF (Friend of a Friend) Standard
 *
 * @author stefanstift
 */
public class Foaf {

    private static Foaf instance;
    private StoreManager storeManager;

    /**
     * The BaseURL from the FOAF Namespace
     */
    private String namespace = QuestionbookConfiguration.getInstance().getFoafURL();
    
    /**
     * foaf:Person
     */
    private String Person    = namespace + "Person";

    /**
     * foaf:knwos
     */
    private String knows    = namespace + "knows";
    
    /**
     * foaf:mbox
     */
    private String mbox    = namespace + "mbox";

    /**
     * foaf:firstName
     */
    private String firstName = namespace + "firstName";

    /**
     * foaf:lastName
     */
    private String lastName = namespace + "lastName";



    protected Foaf() {

        this.storeManager = StoreManager.getInstance();
    }

    public static Foaf getInstance()
    {
        if(instance == null)
            instance = new Foaf();

        return instance;
    }

    public URI getPersonURI()
    {
        return this.storeManager.getStore().getURIref(this.Person);
    }

    public URI getFirstNameURI()
    {
        return this.storeManager.getStore().getURIref(this.firstName);
    }

    public URI getLastNameURI()
    {
        return this.storeManager.getStore().getURIref(this.lastName);
    }

    public URI getKnowsURI()
    {
        return this.storeManager.getStore().getURIref(this.knows);
    }

    public URI getMboxURI()
    {
        return this.storeManager.getStore().getURIref(this.mbox);
    }

    public String getNamespace() {
        return namespace;
    }




}
